package com.biscuit.page.basicservice.api.model.request.user;

import com.biscuit.common.base.BaseAMO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author biscuit
 * @createTime 2024/7/11 14:42
 */
@Getter
@Setter
public class UserUpdateEmailAReq extends BaseAMO {

    @ApiModelProperty(value = "用户Id")
    @NotNull(message = "用户ID为空")
    @Min(value = 0, message = "用户ID非法")
    private Long userId;

    @ApiModelProperty(value = "新邮箱")
    @NotBlank(message = "邮箱为空")
    private String email;

    @ApiModelProperty(value = "邮箱验证码校验通过标识")
    @NotBlank(message = "邮箱验证码校验通过标识为空")
    private String checkKey;

}
